package com.acwing.partition11;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;

public class AC1023买书 {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
        String[] s = reader.readLine().split("\\s+");
        int n = Integer.parseInt(s[0]);
        int[] books = {10, 20, 50, 100};
        writer.write(String.valueOf(dynamicProgramming(books, n)));
        writer.flush();
    }

    private static int dynamicProgramming(int[] books, int total) {
        int[] dp = new int[total + 1];
        dp[0] = 1;
        for (int i = 0; i < books.length; i++) {
            for (int j = books[i]; j <= total; j++) {
                dp[j] += dp[j - books[i]];
            }
        }
        return dp[total];
    }
}
